<?php
/**
 * Algorithme des dépendance pour les ressources
 * @version 1.0
 * @author jonathan <jo.link.noir@gmail.com>
 * @date 18-01-2010
 */
class U1_Resource_Dependency extends SW_Dependency
{
	/** @var ArrayIterator*/
	static protected $dependencies;


	public function __construct()
	{
		if (!self::$dependencies)
		{
			self::$dependencies = new ArrayIterator(array(
				0 => new ArrayIterator(array(
					U1_Building::INDEX => array(3)
				)),
				1 => new ArrayIterator(array(
					U1_Building::INDEX => array(4)
				)),
				2 => new ArrayIterator(array(
					U1_Building::INDEX => array(5)
				)),
				3 => new ArrayIterator(array(
					U1_Building::INDEX => array(6)
				))
			));
		}
		$this->unblock = self::$dependencies;
	}

	/**
	 * @param SW_Planet_Storage_Treatment $resource
	 */
	public function solve(SW_Planet_Storage_Treatment $resource)
	{}
}